//
//  Common.swift
//  微博
//
//  Created by liuerying on 16/5/19.
//  Copyright © 2016年 liuerying. All rights reserved.
//

import UIKit


let ScreeWidth = UIScreen.mainScreen().bounds.width
let ScreeHeight = UIScreen.mainScreen().bounds.height


//用户登录授权配置信息
let client_id = "1891521191"
let client_secret = "9ad408eab6f5e74c18188cb89050f89e"
let redirect_uri = "http://baidu.com"


//定义的通知名称
let  SwitchRootViewController = "SwitchRootViewController"

//错误提示
let AppErrorTip = "网络君正在休息,请稍后等待..."

let sharedDF = NSDateFormatter()

//插入表情的通知
let EmoticonBtnDidClickNotification = "EmoticonBtnDidClickNotification"


//随机颜色
func randomColor()->UIColor{

    let red = CGFloat(random()%256) / 255.0
    let blue = CGFloat(random()%256) / 255.0
    let green = CGFloat(random()%256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}
